<h2>Listing sites</h2>

<table>
  <tr>   
		<th>Site Name</th>
		<th>Manager Name</th>
		<th>Actions</th>
  </tr>
  
<% for site in @sites %>
  <tr>
		<td><%=h site.name %></td>
		<td><%=h site.manager.display_name %></td>
		
    <td>
    	<%= link_to 'Edit', :action => 'edit', :id => site %>
	</td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New site', :action => 'new' %>
